﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SMP.Resource
{
    using System.Data;
    public class System_Res : BaseDB
    {
        public DataTable CheckLogin(object taikhoan, object matkhau)
        {
            matkhau = SMP.Windows.Utility.Text.EncodeMD5(matkhau + "");
            string sql = string.Format(@"SELECT Id_Thanhvien, Hoten, Taikhoan FROM tb_thanhvien WHERE taikhoan = '{0}' AND matkhau = '{1}'", taikhoan, matkhau);
            return ExecuteQuery(sql);
        }

    }
}
